<?php
/************************************************************************/
/* FrameWork  test preview                                              */
/* ==================================================================== */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if(!admin_isadmin())die();
echo "admin";
if ($dir=opendir("applications/$appname/admin")) {
	$i=0;
	while(($file=readdir($dir))!==false){
	    if ($file[0]!=".")
		$adminplugin[$i++]="applications/$appname/admin/$file";
	    }
	closedir($dir);
	sort($adminplugin);
	for ($i=0;$i<count($adminplugin); $i++)
	    include $adminplugin[$i];
}
?>
    </body>
</html>
